package com.yunc.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author tao cong cong
 * @create 2018/12/23 7:32 PM
 */
@TableName("shop_item")
@Data
public class ShopItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private String id;

    private String shopId;

    private String catId;

    /**
     * 品牌名称
     */
    private String brandTitle;

    /**
     * 标题
     */
    private String title;

    /**
     * 现价
     */
    private Double prePrice;

    /**
     * 原价
     */
    private Double origPrice;

    /**
     * 是否有参数1有
     */
    private String isParam;

    /**
     * 规格参数
     */
    private String paramData;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 商品图标
     */
    private String itemLogo;

    /**
     * 商品图片，多图使用逗号隔开
     */
    private String image;

    private String description;

    private String content;

    private String orderNum;

    /**
     * 0=未上架1=上架
     */
    private String status;

    private String creator;

    private Date createTime;

    @TableField(exist = false)
    private String itemSpecsJson;
}
